Skip to content

Conversation

@mfocko
Copy link
Member

@mfocko mfocko commented Mar 20, 2025

Related to packit/private#32

@mfocko mfocko requested a review from nforro March 20, 2025 13:29
@mfocko mfocko self-assigned this Mar 20, 2025
@mfocko mfocko moved this to in-review in Packit Kanban Board Mar 20, 2025
on:
release:
types: [published]
types: [released]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference here? 👀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's for prereleases: babf6b0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k, i'll update the rest

@softwarefactory-project-zuul
Copy link
Contributor

@mfocko mfocko force-pushed the ci/pypi-release-fix branch from cf2496c to b223683 Compare March 20, 2025 17:43
@mfocko mfocko force-pushed the ci/pypi-release-fix branch from b223683 to 475c49e Compare March 20, 2025 17:45
Comment on lines 27 to 28
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come it worked until now without this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have no clue, maybe it was a change in the way github action checkouts the source? I could have a look how we got to this point, but I also think that we started without this and it got added at some point

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weren't the scm tools dropped since then? 👀 if it's related to setuptools_scm

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setuptools_scm is still around (

setup(use_scm_version={"version_scheme": "no-guess-dev"})
,
[tool.setuptools_scm]
).

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/d846083e9d0742f49394926c2bb94115

✔️ pre-commit SUCCESS in 1m 57s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 04s
✔️ specfile-tests-pip-deps SUCCESS in 58s

Comment on lines 25 to 28
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not pass fetch-depth to the checkout action?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was actually checking the options they have, but I was not able to combine it with the first fetch --prune --unshallow

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of that command? If you simply want to do a full clone so that setuptools_scm works properly, you can set fetch-depth to 0. Or is there something else here?

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/95193b14bcf846b8b7556fe70a5cb29d

✔️ pre-commit SUCCESS in 1m 57s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 05s
✔️ specfile-tests-pip-deps SUCCESS in 1m 00s

@mfocko mfocko added mergeit Merge via Zuul and removed mergeit Merge via Zuul labels Mar 25, 2025
@mfocko mfocko merged commit 0cfb153 into packit:main Mar 25, 2025
43 of 44 checks passed
@github-project-automation github-project-automation bot moved this from in-review to done in Packit Kanban Board Mar 25, 2025
@mfocko mfocko deleted the ci/pypi-release-fix branch March 25, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mergeit Merge via Zuul

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants